// components/none-data/none-data.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
     type:{
       type:String,
       value:1
     },
     title:{
       type:String,
       value:'暂无内容'
     }
  },
  lifetimes:{
      attached(){
        //1、无内容  2、无订单  3、 无加载  4、无网络 5、无结果
        if(this.data.type==1){
            // this.data.image='http://rzico.oss-cn-shenzhen.aliyuncs.com/none-data/kongneirong.png'
            this.data.image='https://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/img_q_xgxx_bg%402x.png'
          }else if(this.data.type==2){
          // this.data.image='http://rzico.oss-cn-shenzhen.aliyuncs.com/none-data/kongdingdan.png'
          this.data.image='https://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/img_q_xgxx_bg%402x.png'
        }else if(this.data.type==3){
          // this.data.image='http://rzico.oss-cn-shenzhen.aliyuncs.com/none-data/kongjiazai.png'
          this.data.image='hhttps://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/img_q_ssjg_bg%402x.png'
        }else if(this.data.type==4){
          // this.data.image='http://rzico.oss-cn-shenzhen.aliyuncs.com/none-data/kongwangluo.png'
          this.data.image='https://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/img_q_ssjg_bg%402x.png'
        }else if(this.data.type==5){
          // this.data.image='https://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/img_q_ssjg_bg%402x.png'
          this.data.image='http://rzico.oss-cn-shenzhen.aliyuncs.com/dinnerBar/psqbds1dkynqngikbh9lm3ca42plgsg30k7d2bd937-8f6d-44d6-88e1-c92f4c3432bd.png'
        }


        


        this.setData({
          image:this.data.image
        })
      }
  },
  /**
   * 组件的初始数据
   */
  data: {
    index:0,
    image:'',
    title:''
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
